﻿using System;
using System.Data;
using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class AssembleStep
    {
        private static readonly IAssembleStep dal = DALFactory.DataAccess.CreateAssembleStep();

        public bool AssembleStepItem_Insert(AssembleStepInfo asi, DataTable itemdt)
        {
            return dal.AssembleStepItem_Insert(asi, itemdt);
        }

        public IList<AssembleStepInfo> GetAssembleStepbySN(string productSN)
        {
            return dal.GetAssembleStepbySN(productSN);
        }

        public IList<AssembleStepInfo> GetAssembleStepbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetAssembleStepbyDT(starttime, stoptime);
        }
    }
}
